# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pytsk3
_pkgname=pytsk3
pkgver=20250312
pkgrel=1
pkgdesc='Python bindings for the sleuthkit.'
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/pytsk3/#files'
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('71c836e0d9b18851fde105d038f31e5b654791cd48922b64ea063da9242e017287673df6f727e03d16b2926bd06f4c8970f59a5e36c74fc5f8d9f7f5a9b7e376')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

